package com.example.emos.api.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author ：Supyo
 * @date ：Created in 2021/11/17 10:49
 * @description：
 */
@Data
@Schema(description = "指标标准查询表单")
public class SelectRankBypagesForm {
    @NotNull(message = "page不能为空")
    @Min(value = 1, message = "page不能小于1")
    @Schema(description = "页数")
    private Integer page;

    @NotNull(message = "length不能为空")
    @Range(min = 10, max = 1000, message = "length必须在10~1000之间")
    @Schema(description = "每页记录数")
    private Integer length;

    private String title;
}
